/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package back;

import core.Work;
import dao.IWork;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Dominik
 */
@ManagedBean(name = "work")
@SessionScoped
public class WorkBean implements Serializable {

    @EJB 
    IWork w;

    public WorkBean() {
    }

    public List<Work> getAllWorks() {
      return w.findAllWorks();
    }

}
